package com.batsoft.trade.model.transaction;

import com.batsoft.trade.model.common.BaseTrade;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author <a href="mailto:hellohesir@gmail.com">Mr_He</a>
 * 2019/5/14 00:19
 * 合约撮合
 */
@Getter
@Setter
public final class ContractTrade extends BaseTrade {

    //操作类型
    private ContractType handleType;

    private Date entrustTime = new Date();  //委托时间

    private BigDecimal feeRatio = BigDecimal.ZERO;  //手续费率

    private Integer keepDecimalForCoin = 6;        //定价币保留位数

    private Integer keepDecimalForCurrency = 0;    //交易币保留位数

    private BigDecimal faceValue = BigDecimal.ZERO; // 合约面值价格

    private Integer lend = 0;   // 杠杆倍数

    private Cycle cycle;

    //撤销用 订单号集
    private String[] entrustNum;
}
